import React from 'react'
// import { useHistory, useLocation, useParams } from 'react-router-dom'
import { useHistory, useLocation, useParams } from '../../kreactRouterDOM'

export default function HooksPage() {
      const location = useLocation();
      const params = useParams();
      const history = useHistory();

      console.log(location, "useLocation")
      console.log(params, "useParams")
      console.log(history, "useHistory")
      return (
            <div className='hooks-page-wrapper'>
                <h2>参数： {params.id}</h2>  
            </div>
      )
}
